cmake_minimum_required(VERSION 3.0)
project(msi_renderer VERSION 1.0)

if (EXISTS ${CMAKE_BINARY_DIR}/conan_paths.cmake)
  include(${CMAKE_BINARY_DIR}/conan_paths.cmake)
endif()
set(CMAKE_MODULE_PATH ${CMAKE_BINARY_DIR} ${CMAKE_MODULE_PATH})

if (NOT CMAKE_BUILD_TYPE)
  set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
endif()

set(CMAKE_CXX_STANDARD 17)

find_package(eustis REQUIRED)
find_package(imgpp REQUIRED)
find_package(cnpy REQUIRED)
find_package(fmt REQUIRED)
find_package(nlohmann_json REQUIRED)

add_executable(msi_renderer main.cpp)
target_link_libraries(msi_renderer eustis::eustis imgpp::imgpp
  cnpy::cnpy fmt::fmt nlohmann_json::nlohmann_json stdc++fs)
